
const TdtKey = '35b6d71d2630c03a174e26641b34ddc9';//天地图数据服务Key

/**地图左上角-功能启动图标按钮-初始化控制**/
/**标记说明**/
/*
 1代表layerShow = true,//图层控制-功能启动图标按钮，默认false不显示
 2代表legendShow = true,//图例-功能启动图标按钮，默认false不显示
 3代表measureShow = true,//测量工具-功能启动图标按钮，默认false不显示
 4代表hawkEyeShow = true,//鹰眼-功能启动图标按钮，默认false不显示
 5代表juanlianShow = true,//卷帘-功能启动图标按钮，默认false不显示
 6代表regionShow = true,//区域选择树-功能启动图标按钮，默认false不显示
 7代表mapQueryShow = true,//地图查询-功能启动图标按钮，默认false不显示
 8代表modelBuildingShow = true,//模型构建与空间分析-功能启动图标按钮，默认false不显示
 11代表attrTableShow = true,//属性表格（抽屉）-功能启动图标按钮，默认false不显示
 12代表statisticalAnalysisShow = true,//统计分析（抽屉）-功能启动图标按钮，默认false不显示
 13代表的是地图整式
 31代表attrQueryPanelShow = true; //属性查询-功能启动图标按钮
 32代表geometryQueryPanelShow = true; //几何空间查询-功能启动图标按钮
 33代表distanceQueryPanelShow = true; //距离分析-功能启动图标按钮
 34代表bufferAnalystPanelShow = true; //缓冲区分析-功能启动图标按钮
 35代表thiessenAnalystPanelShow = true; // (数据集)泰森多边形分析-功能启动图标按钮
 36代表heatMapAnalystPanelShow = true; //热力图分析-功能启动图标按钮
 */
const mapCtrlTools = {
  //红色旅游--纪念馆分布
  "jngfb":[1,13,3, 31,32,33,34,35,36],
  //红色旅游--旅游线路推荐
  "lyxltj":[1,13,3,31,32,36],
  //红色旅游--旅游线路规划
  "lyxlgh":[1,13,3,31,32,36],
  //红色人物--英雄名录
  "yxml":[1,13,3,31,32,36],
  //红色任务--英雄事迹
  "yxsj":[1,13,3,31,32,36],
  //红色事件--九一八事变背景
  "jyb_bj":[1,13,3, 31,32,33,34,35,36],
  //红色事件--九一八事变经过
  "jyb_jg":[1,13,3, 31,32,33,34,35,36],
  //红色事件--东北抗战
  "dbkz":[1,13,3, 31,32,33,34],
  //红色教育--红色书籍
  "hssj":[1,13,3, 31,32,36],
  //红色教育--抗战影片
  "kzyp":[1,13,3, 31,33,34],
  //红色教育--抗战故事
  "kzgs":[1,13,3,34,35,36],
};

/**各页面要显示的图层信息**/
//注意：顺序有影响，同一种类别，从下到上显示
const layersDataByFilter = {
  //红色旅游--纪念馆分布
  "jngfb": [
      //【图层组】天地图服务
      {
        lyrType:"Group",
        //srcType:"Group",
        mTitle:"天地图服务",
        mVisible:true,
        mSubLayers:[
          //天地图路网
          {
            lyrType:"Tile",
            srcType:"XYZ",
            mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+TdtKey,
            mTitle:"路网",
            mName:"路网",
            mVisible:false
          },
          //天地图卫星影像
          {
            lyrType:"Tile",
            srcType:"XYZ",
            mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+TdtKey,
            mTitle:"卫星",
            mName:"卫星",
            mVisible:true
          },
          // //天地图文字标注
          {
            lyrType: "Tile",
            srcType: "XYZ",
            mUrl: "https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=" + TdtKey,
            mTitle: "文字标注",
            mName: "文字标注",
            mVisible: true
          },
        ],
      },
      {
        lyrType:"Tile",
        srcType:"TileSuperMapRest",
        mUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/MemorialHall",
        mTitle:"纪念馆分布",
        mName:"纪念馆分布",
        mVisible:true
      }
  ],

  //红色旅游--旅游线路推荐
  "lyxltj": [
    //【图层组】天地图服务
    {
      lyrType:"Group",
      //srcType:"Group",
      mTitle:"天地图服务",
      mVisible:true,
      mSubLayers:[
        //天地图路网
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"路网",
          mName:"路网",
          mVisible:false
        },
        //天地图卫星影像
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"卫星",
          mName:"卫星",
          mVisible:true
        },
        // //天地图文字标注
        {
          lyrType: "Tile",
          srcType: "XYZ",
          mUrl: "https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=" + TdtKey,
          mTitle: "文字标注",
          mName: "文字标注",
          mVisible: true
        },
      ],
    },
    {
      lyrType:"Tile",
      srcType:"TileSuperMapRest",
      mUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/TouristRoute",
      mTitle:"旅游线路推荐",
      mName:"旅游线路推荐",
      mVisible:true
    }
  ],

  //红色旅游--旅游线路规划
  "lyxlgh": [
    //【图层组】天地图服务
    {
      lyrType:"Group",
      //srcType:"Group",
      mTitle:"天地图服务",
      mVisible:true,
      mSubLayers:[
        //天地图路网
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"路网",
          mName:"路网",
          mVisible:false
        },
        //天地图卫星影像
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"卫星",
          mName:"卫星",
          mVisible:true
        },
        // //天地图文字标注
        {
          lyrType: "Tile",
          srcType: "XYZ",
          mUrl: "https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=" + TdtKey,
          mTitle: "文字标注",
          mName: "文字标注",
          mVisible: true
        },
      ],
    },
  ],
  //红色人物--英雄名录
  "yxml": [
    //【图层组】天地图服务
    {
      lyrType:"Group",
      //srcType:"Group",
      mTitle:"天地图服务",
      mVisible:true,
      mSubLayers:[
        //天地图路网
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"路网",
          mName:"路网",
          mVisible:false
        },
        //天地图卫星影像
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"卫星",
          mName:"卫星",
          mVisible:true
        },
        // //天地图文字标注
        {
          lyrType: "Tile",
          srcType: "XYZ",
          mUrl: "https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=" + TdtKey,
          mTitle: "文字标注",
          mName: "文字标注",
          mVisible: true
        },
      ],
    },
  ],
  //红色人物--英雄事迹
  "yxsj": [
    //【图层组】天地图服务
    {
      lyrType:"Group",
      //srcType:"Group",
      mTitle:"天地图服务",
      mVisible:true,
      mSubLayers:[
        //天地图路网
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"路网",
          mName:"路网",
          mVisible:false
        },
        //天地图卫星影像
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"卫星",
          mName:"卫星",
          mVisible:true
        },
        // //天地图文字标注
        {
          lyrType: "Tile",
          srcType: "XYZ",
          mUrl: "https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=" + TdtKey,
          mTitle: "文字标注",
          mName: "文字标注",
          mVisible: true
        },
      ],
    },
    {
      lyrType:"Tile",
      srcType:"TileSuperMapRest",
      mUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/Battle_YJYBattle",
      mTitle:"英雄事迹",
      mName:"英雄事迹",
      mVisible:true
    }
  ],
  //红色事件--九一八事变背景
  "jyb_bj": [
    //【图层组】天地图服务
    {
      lyrType:"Group",
      //srcType:"Group",
      mTitle:"天地图服务",
      mVisible:true,
      mSubLayers:[
        //天地图路网
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"路网",
          mName:"路网",
          mVisible:false
        },
        //天地图卫星影像
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"卫星",
          mName:"卫星",
          mVisible:true
        },
        // //天地图文字标注
        {
          lyrType: "Tile",
          srcType: "XYZ",
          mUrl: "https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=" + TdtKey,
          mTitle: "文字标注",
          mName: "文字标注",
          mVisible: true
        },
      ],
    },
    {
      lyrType:"Tile",
      srcType:"TileSuperMapRest",
      mUrl:"http://jlu3s.com:7030/iserver/services/map-jyb_bj/rest/maps/jyb_bj",
      mTitle:"九一八事变背景",
      mName:"九一八事变背景",
      mVisible:true
    }
  ],

  //红色事件--九一八事变经过
  "jyb_jg": [
    //【图层组】天地图服务
    {
      lyrType:"Group",
      //srcType:"Group",
      mTitle:"天地图服务",
      mVisible:true,
      mSubLayers:[
        //天地图路网
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"路网",
          mName:"路网",
          mVisible:false
        },
        //天地图卫星影像
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"卫星",
          mName:"卫星",
          mVisible:true
        },
        // //天地图文字标注
        {
          lyrType: "Tile",
          srcType: "XYZ",
          mUrl: "https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=" + TdtKey,
          mTitle: "文字标注",
          mName: "文字标注",
          mVisible: true
        },
      ],
    },
    {
      lyrType:"Tile",
      srcType:"TileSuperMapRest",
      mUrl:"http://jlu3s.com:7030/iserver/services/map-jyb_jg/rest/maps/jyb_jg",
      mTitle:"九一八事变经过",
      mName:"九一八事变经过",
      mVisible:true
    }
  ],

  //红色事件--东北抗战
  "dbkz": [
    //【图层组】天地图服务
    {
      lyrType:"Group",
      //srcType:"Group",
      mTitle:"天地图服务",
      mVisible:true,
      mSubLayers:[
        //天地图路网
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"路网",
          mName:"路网",
          mVisible:false
        },
        //天地图卫星影像
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"卫星",
          mName:"卫星",
          mVisible:true
        },
        // //天地图文字标注
        {
          lyrType: "Tile",
          srcType: "XYZ",
          mUrl: "https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=" + TdtKey,
          mTitle: "文字标注",
          mName: "文字标注",
          mVisible: true
        },
      ],
    },
    {
      lyrType:"Tile",
      srcType:"TileSuperMapRest",
      mUrl:"http://jlu3s.com:7030/iserver/services/map-dbkz/rest/maps/dbkz",
      mTitle:"东北抗战",
      mName:"东北抗战",
      mVisible:true
    }
  ],


  //红色教育--红色书籍
  "hssj": [
    //【图层组】天地图服务
    {
      lyrType:"Group",
      //srcType:"Group",
      mTitle:"天地图服务",
      mVisible:true,
      mSubLayers:[
        //天地图路网
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"路网",
          mName:"路网",
          mVisible:false
        },
        //天地图卫星影像
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"卫星",
          mName:"卫星",
          mVisible:true
        },
        // //天地图文字标注
        {
          lyrType: "Tile",
          srcType: "XYZ",
          mUrl: "https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=" + TdtKey,
          mTitle: "文字标注",
          mName: "文字标注",
          mVisible: true
        },
      ],
    },
  ],

  //红色教育--抗战影片
  "kzyp": [
    //【图层组】天地图服务
    {
      lyrType:"Group",
      //srcType:"Group",
      mTitle:"天地图服务",
      mVisible:true,
      mSubLayers:[
        //天地图路网
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"路网",
          mName:"路网",
          mVisible:false
        },
        //天地图卫星影像
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"卫星",
          mName:"卫星",
          mVisible:true
        },
        // //天地图文字标注
        {
          lyrType: "Tile",
          srcType: "XYZ",
          mUrl: "https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=" + TdtKey,
          mTitle: "文字标注",
          mName: "文字标注",
          mVisible: true
        },
      ],
    },
  ],
  //红色教育--抗战故事
  "kzgs": [
    //【图层组】天地图服务
    {
      lyrType:"Group",
      //srcType:"Group",
      mTitle:"天地图服务",
      mVisible:true,
      mSubLayers:[
        //天地图路网
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"路网",
          mName:"路网",
          mVisible:false
        },
        //天地图卫星影像
        {
          lyrType:"Tile",
          srcType:"XYZ",
          mUrl:"https://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+TdtKey,
          mTitle:"卫星",
          mName:"卫星",
          mVisible:true
        },
        // //天地图文字标注
        {
          lyrType: "Tile",
          srcType: "XYZ",
          mUrl: "https://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=" + TdtKey,
          mTitle: "文字标注",
          mName: "文字标注",
          mVisible: true
        },
      ],
    },
  ],

};

//（各页面）地图配参数配置
const mapParams = {
  //红色旅游--纪念馆分布
  "jngfb": {
    projection: 'EPSG:3857', //注意：必须加上此投影才能显示地图，目前有效的是4326和3857，而4490暂未生效
    center: [127.87535, 43.58279], //地图组件已用"ol/proj/fromLonLat"做转化，此处请直接填经纬度；
    maxZoom: 18, //可以放大的最大级别；若此处未定义，地图接收到undefined则表示不受限制
    zoom: 6, //地图初始化时显示级别；注意：若此处未定义，地图初始化显示不出来
  },
  //红色旅游--旅游线路推荐
  "lyxltj": {
    projection: 'EPSG:3857',
    center: [127.87535, 43.58279],
    maxZoom: 18,
    zoom: 6,
  },
  //红色旅游--旅游线路规划
  "lyxlgh": {
    projection: 'EPSG:3857',
    center: [127.87535, 43.58279],
    maxZoom: 18,
    zoom: 6,
  },
  //红色人物--英雄名录
  "yxml": {
    projection: 'EPSG:3857',
    center: [127.87535, 43.58279],
    maxZoom: 18,
    zoom: 6,
  },
  //红色任务--英雄事迹
  "yxsj": {
    projection: 'EPSG:3857',
    center: [127.87535, 43.58279],
    maxZoom: 18,
    zoom: 6,
  },
  //红色事件--九一八事变背景
  "jyb_bj": {
    projection: 'EPSG:3857',
    center: [127.87535, 43.58279],
    maxZoom: 18,
    zoom: 6,
  },
  //红色事件--九一八事变经过
  "jyb_jg": {
    projection: 'EPSG:3857',
    center: [127.87535, 43.58279],
    maxZoom: 18,
    zoom: 6,
  },

  //红色事件--东北抗战
  "dbkz": {
    projection: 'EPSG:3857',
    center: [127.87535, 43.58279],
    maxZoom: 18,
    zoom: 6,
  },

  //红色教育--红色书籍
  "hssj": {
    projection: 'EPSG:3857',
    center: [127.87535, 43.58279],
    maxZoom: 18,
    zoom: 6,
  },

  //红色教育--抗战影片
  "kzyp": {
    projection: 'EPSG:3857',
    center: [127.87535, 43.58279],
    maxZoom: 18,
    zoom: 6,
  },
  //红色教育--抗战故事
  "kzgs": {
    projection: 'EPSG:3857',
    center: [127.87535, 43.58279],
    maxZoom: 18,
    zoom: 6,
  },
};

const spatialQueryConditions={
  //纪念馆分布
  "jngfb": [
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/MemorialHall"
      ,layerName:"MemorialHall_JL@lylx_jng_yjy"  //吉林
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'  //服务的原始坐标系（以制图时设定的为准）
      ,featureProjection: 'EPSG:3857' //由于咱们的地图都用3857，所以此项固定为3857即可
      ,keyField:"NAME"  //和下面featurePics配置的值相对应（这里是字段，下面featurePics填字段的具体值）
      ,mouseEventType:"pointermove"  //click单击，或pointermove悬浮，或dblclick双击；等等；若不指定则无法弹出信息窗口
    },
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/MemorialHall"
      ,layerName:"MemorialHall_LN@lylx_jng_yjy"  //辽宁
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'  //服务的原始坐标系（以制图时设定的为准）
      ,featureProjection: 'EPSG:3857' //由于咱们的地图都用3857，所以此项固定为3857即可
      ,keyField:"NAME"  //和下面featurePics配置的值相对应（这里是字段，下面featurePics填字段的具体值）
      ,mouseEventType:"pointermove"  //click单击，或pointermove悬浮，或dblclick双击；等等；若不指定则无法弹出信息窗口
    },
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/MemorialHall"
      ,layerName:"MemorialHall_HLJ@lylx_jng_yjy"    //黑龙江
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'  //服务的原始坐标系（以制图时设定的为准）
      ,featureProjection: 'EPSG:3857' //由于咱们的地图都用3857，所以此项固定为3857即可
      ,keyField:"NAME"  //和下面featurePics配置的值相对应（这里是字段，下面featurePics填字段的具体值）
      ,mouseEventType:"pointermove"  //click单击，或pointermove悬浮，或dblclick双击；等等；若不指定则无法弹出信息窗口
    },
  ],
  //旅游线路推荐
  "lyxltj": [
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/TouristRoute"
      ,layerName:"TouristRoute_JL_P@lylx_jng_yjy"  //吉林
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"User_key"
      ,mouseEventType:"pointermove"
    },
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/TouristRoute"
      ,layerName:"TouristRoute_LN_P@lylx_jng_yjy"  //辽宁
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"User_key"
      ,mouseEventType:"pointermove"
    },
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/TouristRoute"
      ,layerName:"TouristRoute_HLJ_P@lylx_jng_yjy"    //黑龙江
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"User_key"
      ,mouseEventType:"pointermove"
    },
  ],

  //九一八事变背景
  "jyb_bj": [
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-jyb_bj/rest/maps/jyb_bj"
      ,layerName:"jyb_bj_1@jyb_bj"
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"event_point"
      ,mouseEventType:"pointermove"
    },
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-jyb_bj/rest/maps/jyb_bj"
      ,layerName:"jyb_bj_2@jyb_bj"
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"event_point"
      ,mouseEventType:"pointermove"
    },
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-jyb_bj/rest/maps/jyb_bj"
      ,layerName:"jyb_bj_3@jyb_bj"
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"event_point"
      ,mouseEventType:"pointermove"
    },
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-jyb_bj/rest/maps/jyb_bj"
      ,layerName:"jyb_bj_4@jyb_bj"
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"event_point"
      ,mouseEventType:"pointermove"
    },
  ],

  //九一八事变经过
  "jyb_jg": [
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-jyb_jg/rest/maps/jyb_jg"
      ,layerName:"jyb_jg@jyb_jg"
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"event"
      ,mouseEventType:"pointermove"
    },

  ],

  //东北抗战
  "dbkz": [
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-dbkz/rest/maps/dbkz"
      ,layerName:"dbkz_p@dbkz"
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"event"
      ,mouseEventType:"pointermove"
    },

  ],

  //英雄事迹
  "yxsj": [
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/Battle_YJYBattle"
      ,layerName:"GeneralDeadPlace_P@lylx_jng_yjy"
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"User_key"
      ,mouseEventType:"pointermove"
    },
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/Battle_YJYBattle"
      ,layerName:"BattlePlace_P@lylx_jng_yjy"
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"User_key"
      ,mouseEventType:"pointermove"
    },
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/Battle_YJYBattle"
      ,layerName:"YJYDeadPlace_P@lylx_jng_yjy"
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"User_key"
      ,mouseEventType:"pointermove"
    },
    {
      queryUrl:"http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/Battle_YJYBattle"
      ,layerName:"YJYBattlePlace_P@lylx_jng_yjy"
      ,attributeFilter:""   //SmUserID=0
      ,dataProjection: 'EPSG:3857'
      ,featureProjection: 'EPSG:3857'
      ,keyField:"User_key"
      ,mouseEventType:"pointermove"
    },

  ],


};

//附件图片
// 说明：先这样弄着，后续放到数据库中通过接口来获取
const featurePics=[];

//属性查询
const attrQuery = {
  //纪念馆分布
  "jngfb": [
    {
      queryUrl: "http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/MemorialHall"
      ,layerName: "MemorialHall_JL@lylx_jng_yjy"
      ///, attributeFilter: "SmUserID=0" //注意：走面板用户选择，这里不需要配置了
    }
  ],
  "jyb_bj":[
    {
      queryUrl: "http://jlu3s.com:7030/iserver/services/map-jyb_bj/rest/maps/jyb_bj"
      ,layerName: "jyb_bj_1@jyb_bj"
      ///, attributeFilter: "SmUserID=0" //注意：走面板用户选择，这里不需要配置了

    }
  ]

};

//几何空间查询
const geometryQuery = {
  //纪念馆分布
  "jngfb": [
    {
      queryUrl: "http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/MemorialHall"
      ,layerName: "MemorialHall_JL@lylx_jng_yjy"
    }
  ],

};

//距离查询
const distanceQuery = {
  //纪念馆分布
  "jngfb": [
    {
      queryUrl: "http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/MemorialHall"
      ,layerName: "MemorialHall_JL@lylx_jng_yjy"
      ///,attributeFilter: "SmUserID=0"
      ,distance: 1000, //查询的距离范围
    }
  ],

};

//热力图分析
const heatMapAnalyst = {
  //纪念馆分布
  "jngfb": [
    {
      queryUrl: "http://jlu3s.com:7030/iserver/services/map-lylx_jng_yjy/rest/maps/MemorialHall"
      , layerName: "MemorialHall_JL@lylx_jng_yjy"
      , attributeFilter: "SmUserID=0"
      , dataProjection: 'EPSG:3857'  //服务的原始坐标系（以制图时设定的为准）
      , featureProjection: 'EPSG:3857' //由于咱们的地图都用3857，所以此项固定为3857即可
    }
  ],

};

// (数据集)泰森多边形分析
const thiessenAnalyst = {
  //纪念馆分布
  "jngfb": [
    {
      queryUrl: "http://jlu3s.com:7030/iserver/services/spatialAnalysis-lylx_jng_yjy/restjsr/spatialanalyst"
      , layerName: "MemorialHall_JL@lylx_jng_yjy"
      , attributeFilter: "SmUserID=0"
      , dataProjection: 'EPSG:3857'  //服务的原始坐标系（以制图时设定的为准）
      , featureProjection: 'EPSG:3857' //由于咱们的地图都用3857，所以此项固定为3857即可
    }
  ],

};

//缓冲区分析
const bufferAnalyst = {
  //纪念馆分布
  "jngfb": [
    {
      queryUrl: "http://jlu3s.com:7030/iserver/services/spatialAnalysis-lylx_jng_yjy/restjsr/spatialanalyst"
      , layerName: "MemorialHall_JL@lylx_jng_yjy"
      , attributeFilter: "SmUserID=0" //缓冲区分析必须要指定哪个图形
    }
  ],

};


/**
 * 整体输出配置对象
 */
const custom_config = {
  mapCtrlTools
  ,layersDataByFilter
  ,mapParams
  ,featurePics
  ,spatialQueryConditions
  ,attrQuery
  ,geometryQuery
  ,distanceQuery
  ,heatMapAnalyst
  ,thiessenAnalyst
  ,bufferAnalyst
}
